package com.example.imageloader;

public class ImageOptions {
    private int mPlaceImage;
    private int mErrorImage;

    private ImageOptions(int mPlaceImage, int mErrorImage) {
        this.mPlaceImage = mPlaceImage;
        this.mErrorImage = mErrorImage;
    }

    public int getmPlaceImage() {
        return mPlaceImage;
    }

    public int getmErrorImage() {
        return mErrorImage;
    }
    public static class Builder{
        private int placeImage;
        private int errorImage;

        public Builder setPlaceImage(int placeImage) {
            this.placeImage = placeImage;
            return this;
        }

        public Builder setErrorImage(int errorImage) {
            this.errorImage = errorImage;
            return this;
        }
        public ImageOptions build(){
            return new ImageOptions(placeImage, errorImage);
        }

    }

}






























